package shujvjiegou.week7;

import java.util.Scanner;

public class t6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.next();
        String str2 = scanner.next();
        if (str1.lastIndexOf("#") == -1) {
            System.out.println("good luckthis is a test");
        } else {
            
            str1 = str1.replaceAll("#", "");
            str2 = str2.replaceAll("#", "");
            System.out.println(str2 + str1);
        }
    }
}